package com.example.service.impl;

import com.example.model.SysUser;
import com.example.service.SysUserService;
import com.tlgen.orm.factory.Model;
import com.tlgen.orm.factory.QueryOperator;
import com.tlgen.zero.common.R;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserServiceImpl implements SysUserService {

    @Override
    public R selectRecommendUserList(String mobile) {
        List<SysUser> select = Model.select(new QueryOperator<SysUser>().like(SysUser::getMobile, mobile), SysUser.class);
        return R.ok(select, "查询成功!");
    }

}
